package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 报价单表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "quotation")
public class Quotation implements Serializable {
    /**
     * 报价单ID
     */
    @TableId(value = "quotation_id", type = IdType.INPUT)
    private Integer quotationId;

    /**
     * 报价单编号
     */
    @TableField(value = "`number`")
    private String number;

    /**
     * 报价单名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 客户ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 客户联系人ID
     */
    @TableField(value = "contacts_id")
    private Integer contactsId;

    /**
     * 商机ID
     */
    @TableField(value = "business_id")
    private Integer businessId;

    /**
     * 状态 0待审核、1通过、2拒绝、3审核中 4:撤回 5 未提交 6 创建 7 已删除 8 作废
     */
    @TableField(value = "check_status")
    private Integer checkStatus;

    /**
     * 审核记录ID
     */
    @TableField(value = "examine_record_id")
    private Integer examineRecordId;

    /**
     * 报价日期
     */
    @TableField(value = "quotation_date")
    private Date quotationDate;

    /**
     * 创建人ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 负责人ID
     */
    @TableField(value = "owner_user_id")
    private Long ownerUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 报价金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 成交日期
     */
    @TableField(value = "fixture_date")
    private Date fixtureDate;

    /**
     * 整单折扣
     */
    @TableField(value = "discount_rate")
    private BigDecimal discountRate;

    /**
     * 产品总金额
     */
    @TableField(value = "total_price")
    private BigDecimal totalPrice;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    private static final long serialVersionUID = 1L;
}